home *** CD-ROM | disk | FTP | other *** search
- DIR Used to determine the location of files on the
- disk and to view the directory structure. Also
- provides info on file sizes and dates.
-
- Format: DIR [D:Path][FileSpec] [/P] [/W]
-
- /P PAUSES at the end of each screen of directory
- listings instead of normal scrolling.
-
- /W displays directory listing in a WIDE format
- (Five column display without the size, date,
- and time information.)
-
- Example: DIR
-
- Displays listings of subdirectories and ALL files
- contained in the CURRENT directory in a one column
- format showing filename.ext, size, date and time.
- Example: DIR *.BAT
-
- Lists ONLY those files in the CURRENT directory that
- have an extension of .BAT in a one column, scrolling
- display format.
-
- Example: DIR \123\*.WK1 /P
-
- Lists ONLY those files in the \123 directory that
- have an extension of .WK1 in a one column format and
- PAUSES at the end of each screen.
-
- Example: DIR \123\*.WK1 /P/W
-
- Same as above, except display is in the five column
- format which omits size, date and time. (Useful for
- viewing directories that contain a large number of
- files.)
- Example: DIR A:
-
- Lists ALL files contained on the diskette residing
- on drive A in the one column, scrolling format.
-
- Example: C:\> DIR D:\WP\DATA\*.TXT
-
- Lists ONLY those files in the \WP\DATA subdirectory
- on drive D: that have an extension of *.TXT in the
- one column, scrolling format. (Note: Command was
- issued while in the ROOT directory of drive C.)
-
- Example: DIR \WP\DATA\*.TXT|SORT >LPT1
-
- Causes a listing of ALL *.TXT files contained on
- the \WP\DATA subdirectory on the CURRENT drive to
- be REDIRECTED to your LPT1 printer, instead of
- being displayed on the monitor screen. With the
- addition of the SORT filter command, this listing
- will also be printed in alphabeltical order.
-
- Example: DIR \WP\DATA\*.TXT|SORT >WPTEXT.BAK
-
- Same as above, except the directory listing is
- placed in a file named WPTEXT.BAK on the CURRENT
- directory. This file can then either be printed
- using the COPY or PRINT commands or displayed on
- the screen using the TYPE command.
-
-
- [*] The DIR command will display listings of ANY
- drive and subdirectory, regardless of your current
- location on the drive, provided you indicate the
- desired [D:][Path] parameters in your command.
-
- [*] Do NOT use SORT with the /P and /W switches.